package com.microHR.hr.service.impl;

import com.microHR.hr.mapper.PoliticsstatusMapper;
import com.microHR.hr.model.Politicsstatus;
import com.microHR.hr.model.PoliticsstatusExample;
import com.microHR.hr.service.PoliticsstatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class PoliticsstatusServiceImpl implements PoliticsstatusService {

    @Autowired
    private PoliticsstatusMapper politicsstatusMapper;

    @Override
    public List<Politicsstatus> getAllPoliticsstatus() {
        PoliticsstatusExample example = new PoliticsstatusExample();
        return politicsstatusMapper.selectByExample(example);
    }
}
